<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt; Struct Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="structshark_1_1_weighted_data_batch-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt; Struct Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_weighted_dataset_8h_source.html">shark/Data/WeightedDataset.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aab93ae72cede17722ce1d1e831e5186d" id="r_aab93ae72cede17722ce1d1e831e5186d"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_weighted_data_pair.html">WeightedDataPair</a>&lt; decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt; DataBatchType &amp; &gt;(), 0)), decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt; WeightBatchType &amp; &gt;(), 0)) &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#aab93ae72cede17722ce1d1e831e5186d">reference</a></td></tr>
<tr class="separator:aab93ae72cede17722ce1d1e831e5186d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6720b317a8ce59206d04aad023c299c" id="r_aa6720b317a8ce59206d04aad023c299c"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_weighted_data_pair.html">WeightedDataPair</a>&lt; decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt; typename std::add_const&lt; DataBatchType &gt;::type &amp; &gt;(), 0)), decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt; typename std::add_const&lt; WeightBatchType &gt;::type &amp; &gt;(), 0)) &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#aa6720b317a8ce59206d04aad023c299c">const_reference</a></td></tr>
<tr class="separator:aa6720b317a8ce59206d04aad023c299c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b970bab9307c3425a433d2582a29c58" id="r_a9b970bab9307c3425a433d2582a29c58"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_indexing_iterator.html">IndexingIterator</a>&lt; <a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9b970bab9307c3425a433d2582a29c58">iterator</a></td></tr>
<tr class="separator:a9b970bab9307c3425a433d2582a29c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a589f16a9f45a55f7ce78ed8765d4df" id="r_a0a589f16a9f45a55f7ce78ed8765d4df"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_indexing_iterator.html">IndexingIterator</a>&lt; <a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a> const  &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a0a589f16a9f45a55f7ce78ed8765d4df">const_iterator</a></td></tr>
<tr class="separator:a0a589f16a9f45a55f7ce78ed8765d4df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac82c6a85cfc3cedcc5f9ad7ab0d370aa" id="r_ac82c6a85cfc3cedcc5f9ad7ab0d370aa"><td class="memTemplParams" colspan="2">template&lt;class D , class W &gt; </td></tr>
<tr class="memitem:ac82c6a85cfc3cedcc5f9ad7ab0d370aa"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#ac82c6a85cfc3cedcc5f9ad7ab0d370aa">WeightedDataBatch</a> (D &amp;&amp;<a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">data</a>, W &amp;&amp;<a class="el" href="structshark_1_1_weighted_data_batch.html#a6c2e982d48f580e8f702070e530b9843">weight</a>)</td></tr>
<tr class="separator:ac82c6a85cfc3cedcc5f9ad7ab0d370aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba773079455339053a533ed884868fc2" id="r_aba773079455339053a533ed884868fc2"><td class="memTemplParams" colspan="2">template&lt;class Pair &gt; </td></tr>
<tr class="memitem:aba773079455339053a533ed884868fc2"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#aba773079455339053a533ed884868fc2">WeightedDataBatch</a> (std::size_t <a class="el" href="structshark_1_1_weighted_data_batch.html#a54a8f4d8ff69f2d811c7bfc61f70fe1a">size</a>, Pair const &amp;p)</td></tr>
<tr class="separator:aba773079455339053a533ed884868fc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a07bdf59fd11d9f3bd7cf38dedec869" id="r_a9a07bdf59fd11d9f3bd7cf38dedec869"><td class="memTemplParams" colspan="2">template&lt;class I , class L &gt; </td></tr>
<tr class="memitem:a9a07bdf59fd11d9f3bd7cf38dedec869"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9a07bdf59fd11d9f3bd7cf38dedec869">operator=</a> (<a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a>&lt; I, L &gt; const &amp;batch)</td></tr>
<tr class="separator:a9a07bdf59fd11d9f3bd7cf38dedec869"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54a8f4d8ff69f2d811c7bfc61f70fe1a" id="r_a54a8f4d8ff69f2d811c7bfc61f70fe1a"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a54a8f4d8ff69f2d811c7bfc61f70fe1a">size</a> () const</td></tr>
<tr class="separator:a54a8f4d8ff69f2d811c7bfc61f70fe1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98dd827f038cb5b040270fe7b04dd0bf" id="r_a98dd827f038cb5b040270fe7b04dd0bf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9b970bab9307c3425a433d2582a29c58">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a98dd827f038cb5b040270fe7b04dd0bf">begin</a> ()</td></tr>
<tr class="separator:a98dd827f038cb5b040270fe7b04dd0bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad59bbfed85b4dcf79cbc5fec32fb0a7f" id="r_ad59bbfed85b4dcf79cbc5fec32fb0a7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#a0a589f16a9f45a55f7ce78ed8765d4df">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#ad59bbfed85b4dcf79cbc5fec32fb0a7f">begin</a> () const</td></tr>
<tr class="separator:ad59bbfed85b4dcf79cbc5fec32fb0a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d52a8bba398c542b279eff348e767ca" id="r_a3d52a8bba398c542b279eff348e767ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9b970bab9307c3425a433d2582a29c58">iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a3d52a8bba398c542b279eff348e767ca">end</a> ()</td></tr>
<tr class="separator:a3d52a8bba398c542b279eff348e767ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d74ee915f51b09f82ea0bd7f0fda253" id="r_a9d74ee915f51b09f82ea0bd7f0fda253"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#a0a589f16a9f45a55f7ce78ed8765d4df">const_iterator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9d74ee915f51b09f82ea0bd7f0fda253">end</a> () const</td></tr>
<tr class="separator:a9d74ee915f51b09f82ea0bd7f0fda253"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf2340323a3555f694c2401e9c929078" id="r_adf2340323a3555f694c2401e9c929078"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#aab93ae72cede17722ce1d1e831e5186d">reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#adf2340323a3555f694c2401e9c929078">operator[]</a> (std::size_t i)</td></tr>
<tr class="separator:adf2340323a3555f694c2401e9c929078"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe8aa3af931ea176a11c3cd1eb97ad88" id="r_abe8aa3af931ea176a11c3cd1eb97ad88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_weighted_data_batch.html#aa6720b317a8ce59206d04aad023c299c">const_reference</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#abe8aa3af931ea176a11c3cd1eb97ad88">operator[]</a> (std::size_t i) const</td></tr>
<tr class="separator:abe8aa3af931ea176a11c3cd1eb97ad88"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afe97e8d945ac50b033bd2fe8e6c7718f" id="r_afe97e8d945ac50b033bd2fe8e6c7718f"><td class="memItemLeft" align="right" valign="top">DataBatchType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">data</a></td></tr>
<tr class="separator:afe97e8d945ac50b033bd2fe8e6c7718f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c2e982d48f580e8f702070e530b9843" id="r_a6c2e982d48f580e8f702070e530b9843"><td class="memItemLeft" align="right" valign="top">WeightBatchType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_weighted_data_batch.html#a6c2e982d48f580e8f702070e530b9843">weight</a></td></tr>
<tr class="separator:a6c2e982d48f580e8f702070e530b9843"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class DataBatchType, class WeightBatchType&gt;<br />
struct shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;</div>
<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00091">91</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a0a589f16a9f45a55f7ce78ed8765d4df" name="a0a589f16a9f45a55f7ce78ed8765d4df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a589f16a9f45a55f7ce78ed8765d4df">&#9670;&#160;</a></span>const_iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_indexing_iterator.html">IndexingIterator</a>&lt;<a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a> const&gt; <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::const_iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00112">112</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="aa6720b317a8ce59206d04aad023c299c" name="aa6720b317a8ce59206d04aad023c299c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6720b317a8ce59206d04aad023c299c">&#9670;&#160;</a></span>const_reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_weighted_data_pair.html">WeightedDataPair</a>&lt; decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt;typename std::add_const&lt;DataBatchType&gt;::type&amp;&gt;(),0)), decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt;typename std::add_const&lt;WeightBatchType&gt;::type&amp;&gt;(),0)) &gt; <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::const_reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00110">110</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a9b970bab9307c3425a433d2582a29c58" name="a9b970bab9307c3425a433d2582a29c58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b970bab9307c3425a433d2582a29c58">&#9670;&#160;</a></span>iterator</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_indexing_iterator.html">IndexingIterator</a>&lt;<a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a>&gt; <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00111">111</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="aab93ae72cede17722ce1d1e831e5186d" name="aab93ae72cede17722ce1d1e831e5186d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab93ae72cede17722ce1d1e831e5186d">&#9670;&#160;</a></span>reference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_weighted_data_pair.html">WeightedDataPair</a>&lt; decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt;DataBatchType&amp;&gt;(),0)), decltype(<a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">getBatchElement</a>(std::declval&lt;WeightBatchType&amp;&gt;(),0)) &gt; <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::reference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00106">106</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac82c6a85cfc3cedcc5f9ad7ab0d370aa" name="ac82c6a85cfc3cedcc5f9ad7ab0d370aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac82c6a85cfc3cedcc5f9ad7ab0d370aa">&#9670;&#160;</a></span>WeightedDataBatch() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<div class="memtemplate">
template&lt;class D , class W &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::WeightedDataBatch </td>
          <td>(</td>
          <td class="paramtype">D &amp;&amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">W &amp;&amp;&#160;</td>
          <td class="paramname"><em>weight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00115">115</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="aba773079455339053a533ed884868fc2" name="aba773079455339053a533ed884868fc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba773079455339053a533ed884868fc2">&#9670;&#160;</a></span>WeightedDataBatch() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<div class="memtemplate">
template&lt;class Pair &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::WeightedDataBatch </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Pair const &amp;&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00121">121</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a98dd827f038cb5b040270fe7b04dd0bf" name="a98dd827f038cb5b040270fe7b04dd0bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98dd827f038cb5b040270fe7b04dd0bf">&#9670;&#160;</a></span>begin() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9b970bab9307c3425a433d2582a29c58">iterator</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00136">136</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="ad59bbfed85b4dcf79cbc5fec32fb0a7f" name="ad59bbfed85b4dcf79cbc5fec32fb0a7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad59bbfed85b4dcf79cbc5fec32fb0a7f">&#9670;&#160;</a></span>begin() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#a0a589f16a9f45a55f7ce78ed8765d4df">const_iterator</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00139">139</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

</div>
</div>
<a id="a3d52a8bba398c542b279eff348e767ca" name="a3d52a8bba398c542b279eff348e767ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d52a8bba398c542b279eff348e767ca">&#9670;&#160;</a></span>end() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#a9b970bab9307c3425a433d2582a29c58">iterator</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00143">143</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#a54a8f4d8ff69f2d811c7bfc61f70fe1a">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::size()</a>.</p>

</div>
</div>
<a id="a9d74ee915f51b09f82ea0bd7f0fda253" name="a9d74ee915f51b09f82ea0bd7f0fda253"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d74ee915f51b09f82ea0bd7f0fda253">&#9670;&#160;</a></span>end() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#a0a589f16a9f45a55f7ce78ed8765d4df">const_iterator</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00146">146</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#a54a8f4d8ff69f2d811c7bfc61f70fe1a">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::size()</a>.</p>

</div>
</div>
<a id="a9a07bdf59fd11d9f3bd7cf38dedec869" name="a9a07bdf59fd11d9f3bd7cf38dedec869"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a07bdf59fd11d9f3bd7cf38dedec869">&#9670;&#160;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<div class="memtemplate">
template&lt;class I , class L &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a> &amp; <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structshark_1_1_weighted_data_batch.html">WeightedDataBatch</a>&lt; I, L &gt; const &amp;&#160;</td>
          <td class="paramname"><em>batch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00126">126</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::data</a>, and <a class="el" href="structshark_1_1_weighted_data_batch.html#a6c2e982d48f580e8f702070e530b9843">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::weight</a>.</p>

</div>
</div>
<a id="adf2340323a3555f694c2401e9c929078" name="adf2340323a3555f694c2401e9c929078"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf2340323a3555f694c2401e9c929078">&#9670;&#160;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#aab93ae72cede17722ce1d1e831e5186d">reference</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00150">150</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::data</a>, <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>, and <a class="el" href="structshark_1_1_weighted_data_batch.html#a6c2e982d48f580e8f702070e530b9843">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::weight</a>.</p>

</div>
</div>
<a id="abe8aa3af931ea176a11c3cd1eb97ad88" name="abe8aa3af931ea176a11c3cd1eb97ad88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe8aa3af931ea176a11c3cd1eb97ad88">&#9670;&#160;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structshark_1_1_weighted_data_batch.html#aa6720b317a8ce59206d04aad023c299c">const_reference</a> <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00153">153</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::data</a>, <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>, and <a class="el" href="structshark_1_1_weighted_data_batch.html#a6c2e982d48f580e8f702070e530b9843">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::weight</a>.</p>

</div>
</div>
<a id="a54a8f4d8ff69f2d811c7bfc61f70fe1a" name="a54a8f4d8ff69f2d811c7bfc61f70fe1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54a8f4d8ff69f2d811c7bfc61f70fe1a">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00132">132</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_weighted_data_batch.html#afe97e8d945ac50b033bd2fe8e6c7718f">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::data</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_weighted_data_batch.html#a3d52a8bba398c542b279eff348e767ca">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::end()</a>, and <a class="el" href="structshark_1_1_weighted_data_batch.html#a9d74ee915f51b09f82ea0bd7f0fda253">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::end()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afe97e8d945ac50b033bd2fe8e6c7718f" name="afe97e8d945ac50b033bd2fe8e6c7718f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe97e8d945ac50b033bd2fe8e6c7718f">&#9670;&#160;</a></span>data</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">DataBatchType <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::data</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00096">96</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_weighted_data_batch.html#a9a07bdf59fd11d9f3bd7cf38dedec869">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator=()</a>, <a class="el" href="structshark_1_1_weighted_data_batch.html#adf2340323a3555f694c2401e9c929078">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator[]()</a>, <a class="el" href="structshark_1_1_weighted_data_batch.html#abe8aa3af931ea176a11c3cd1eb97ad88">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator[]()</a>, <a class="el" href="structshark_1_1_weighted_data_batch.html#a54a8f4d8ff69f2d811c7bfc61f70fe1a">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::size()</a>, and <a class="el" href="namespaceshark.html#a3cc030be2d66d651db977fda36958a8d">shark::swap()</a>.</p>

</div>
</div>
<a id="a6c2e982d48f580e8f702070e530b9843" name="a6c2e982d48f580e8f702070e530b9843"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c2e982d48f580e8f702070e530b9843">&#9670;&#160;</a></span>weight</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class DataBatchType , class WeightBatchType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">WeightBatchType <a class="el" href="structshark_1_1_weighted_data_batch.html">shark::WeightedDataBatch</a>&lt; DataBatchType, WeightBatchType &gt;::weight</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_weighted_dataset_8h_source.html#l00097">97</a> of file <a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_weighted_data_batch.html#a9a07bdf59fd11d9f3bd7cf38dedec869">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator=()</a>, <a class="el" href="structshark_1_1_weighted_data_batch.html#adf2340323a3555f694c2401e9c929078">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator[]()</a>, <a class="el" href="structshark_1_1_weighted_data_batch.html#abe8aa3af931ea176a11c3cd1eb97ad88">shark::WeightedDataBatch&lt; DataBatchType, WeightBatchType &gt;::operator[]()</a>, and <a class="el" href="namespaceshark.html#a3cc030be2d66d651db977fda36958a8d">shark::swap()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/shark/Data/<a class="el" href="_weighted_dataset_8h_source.html">WeightedDataset.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
